package cn.bby.query.base.util;

/**
 * @author ben
 * @since 2025/4/20 03:05
 */
public class UriUtil {
    public static String concatUri(String baseUrl, String path) {
        if (baseUrl.endsWith("/") && path.startsWith("/")) {
            return baseUrl + path.substring(1);
        } else if (!baseUrl.endsWith("/") && !path.startsWith("/")) {
            return baseUrl + "/" + path;
        } else {
            return baseUrl + path;
        }
    }
}
